projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03eb4c3
)
widgetpath: Use ref/unref in boxed function
author
Benjamin Otte
<otte@redhat.com>
Fri, 27 May 2011 14:37:16 +0000
(16:37 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 2 Jun 2011 00:03:51 +0000
(
02:03
+0200)
This way we avoid lots of copying when using widget paths as properties.
Keeping this as a separate patch so bugs where people were modifying a
structure they shouldn't are easily visible.
gtk/gtkwidgetpath.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidgetpath.c
b/gtk/gtkwidgetpath.c
index 52ca7e05701d3347979c25a9f23cbc36062901ac..55085d2fed473a3a2a381412874a1b5b3d16c54d 100644
(file)
--- a/
gtk/gtkwidgetpath.c
+++ b/
gtk/gtkwidgetpath.c
@@
-82,7
+82,7
@@
**/
G_DEFINE_BOXED_TYPE (GtkWidgetPath, gtk_widget_path,
- gtk_widget_path_
copy, gtk_widget_path_free
)
+ gtk_widget_path_
ref, gtk_widget_path_unref
)
typedef struct GtkPathElement GtkPathElement;